$(document).ready( function(){
	$("#font-selector li").click(function(){
		$.fancybox.showActivity();
	    $("#process-error").hide();
	    $("#process-success").hide();
	    $("#fontSize").val( $(this).attr("id") );
	    
	    $.post("/user/settings", $("#user-settings").serialize(), function(data) {
	      if(data != "OK"){
	        $("#process-error").show();
	      } else {
	        $("#process-success").show();
	      }
	    });
	    $.fancybox.hideActivity();
	});
	  
	$("#theme-selector li").click(function(){
		$.fancybox.showActivity();
	    $("#process-error").hide();
	    $("#process-success").hide();
	    $("#themeName").val( $(this).attr("id") );
	    
	    $.post("/user/settings", $("#user-settings").serialize(), function(data) {
	      if(data != "OK"){
	        $("#process-error").show();
	      } else {
	        $("#process-success").show();
	      }
	    });
	    $.fancybox.hideActivity();
	});

});//ready